home *** CD-ROM | disk | FTP | other *** search
- Path: news.danadata.dk!usenet
- From: hendis@aix1.danadata.dk (Henrik Dissing)
- Newsgroups: comp.sys.amiga.applications
- Subject: Re: Tools Manager and Memory
- Date: 11 Jan 1996 05:45:56 GMT
- Organization: DanaData Internet Services
- Message-ID: <2122.6584T31T1873@aix1.danadata.dk>
- References: <861.6581T612T2111@genie.geis.com> <9601090037.AA007ci@cvget.demon.co.uk>
- NNTP-Posting-Host: 193.162.156.17
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
-
-
- On 09-Jan-96 01:37:05, Guy Tanner wrote:
-
- > Steven Folberg (s.folberg@genie.geis.com) wrote:
- >:
- >: Another question: Can you get a TM dock button assigned to a CLI program
- >: to open a shell window (I'm running WB 3.0)?
- >:
-
- > Yes you can, I've been doing with several CLI commands.
-
- > Here are the steps.
-
- > 1) Create a script that calls the command you want with any keywords.
-
- > For Example I use the following to to unbatch my NewsDownloads if the
- > connect is broken.
-
- > ;ver$ 1.0 UnBatchNewsNTTP Script
- > ; For use with standard NTTP NewsBatch Files
-
- > FailAT 35
-
-
- > echo "UnBatching News"
- > AmiTCP:bin/rnews uuspool:NewsBatch
-
- > echo "Delete BatchFile"
- > wait 1
- > c:delete uuspool:NewsBatch QUIET
-
- > Endcli
-
- > 2) Save your script in a directory of your choice.
-
- > 3) Change the Icon Type of the script to a Project. You can use the Icon
- > Editor
- > that comes with the WorkBench to do this.
-
- > 4) Select the Script with one click, and then bring up its Information
- > Window by
- > using "Right Amiga + I"
-
- > 5) In the Default Tool: box, enter C:IconX
-
- > 6) Select New (bottom left) and then enter in the window right of the button
-
- > WINDOW=con:88/79/285/147/Script_is_running
-
- > 7) Now setup the Script with Tools Manager as if it was just a standard
- > program.
- > You will have the script run in its own shell.
-
- That has got to be the the most complicated solution to this simple
- problem that anyone could come up with! :-)
-
- Either that, or I don't understand the original question.
-
- Anyway, here's my suggestion, in case you need an interactive shell:
-
- In ToolManager, set the Exec Type to "CLI", and Command to:
- NewShell WINDOW "CON:<x>/<y>/<w>/<h>/<title>/AUTO>" FROM <script>
-
- And in your example, assuming you only need the window to see what's
- going on, I would simply set Command to "UnBatchNewsNTTP" and put
- "con:88/79/285/147/Script_is_running" in the Output File text gadget.
-
- I run my Startnet script this way and it works like a charm.
-
- --
- Henrik Dissing E-mail: hendis@aix1.danadata.dk
- Tranbjerg, Denmark FidoNet: 2:238/24.6
-
-
-